package tuling.netty.meix;

import java.math.BigInteger;
import java.security.SecureRandom;
import java.util.UUID;

/**
 * @author RenGaoshuai
 * @date 2023/12/27 13:22
 * @description
 */
public class TestUUid {
    public static void main(String[] args) {
        UUID uuid = UUID.randomUUID();
        String appKey = uuid.toString();
        System.out.println("AppKey: " + appKey);

        SecureRandom random = new SecureRandom();
        String appSecret = new BigInteger(130, random).toString(32);
        System.out.println("AppSecret: " + appSecret);
    }
}
